<?php echo $this->Form->create('Canbo');?> 
<fieldset>
<legend  align="center"><?php __('Tìm Cán Bộ'); ?></legend>

        <?php 
        
echo "<table>";
              echo  "<tr>";           	
                          echo  "<td> Tìm Theo :";
                                    $options = array('ten' => 'Tên', 'macb' => 'Mã Cán Bộ', 'sodienthoai'=>'Số Điện Thoại','quequan'=>'Quê Quán');
                                    echo $this->Form->select('tim', $options);
                                    echo $ajax->autoComplete('Canbo.noidung', '/canbos/auto',array('label'=>'Nọi Dung'));       
                          echo  "</td>";
              echo  "</tr>";
              echo  "<tr>";
                          echo  "<td>";
                                    echo $this->Form->end('Tìm');
                          echo  "</td>";
              echo  "</tr>";
echo "</table>";
    	?>      
</fieldset>
<fieldset>
<legend align="center" style="border-bottom: double;" ><?php __('Thông Tin Cán Bộ'); ?></legend>
  <?php
  if(!empty($thongtin)){
//    debug($thongtin);
		foreach($thongtin as $ten){
		  
		  $hocham=$ten['Hocham'];
          $hocvi=$ten['Hocvi'];
          $donvi=$ten['Donvi'];
		  $canbo=$ten['Canbo'];
          $chucvu=$ten['Cochucvuk'];
       //   debug($ten1);
	        echo "<div>";
            echo "<table>";
            
             echo "<tr><td>";
			echo "Tên Cán Bộ: ";
            echo "<td>".$canbo['ten']."</td>";
              echo "</td></tr>";
       
            echo "<tr><td>";
			echo "Mã Cán Bộ: ";
            echo "<td>".$canbo['macb']."</td>";
            echo "</td></tr>";
              
            echo "<tr><td>";
			echo "Phái : ";
            echo "<td>".$canbo['phai']."</td>";
              echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Năm Sinh : ";
            echo "<td>".$canbo['namsinh']."</td>";
              echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Số Điện Thoại : ";
            echo "<td>".$canbo['sodienthoai']."</td>";
              echo "</td></tr>";
             
              echo "<tr><td>";
            echo "Quê Quán  : ";
            echo "<td>".$canbo['quequan']."</td>";
             echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Năm Vào Làm : ";
            echo "<td>".$canbo['namvaolam']."</td>";
             echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Email : ";
            echo "<td>".$canbo['email']."</td>";
              echo "</td></tr>";
            
             echo "<tr><td>";
            echo "Học Hàm : ";
            echo "<td>".$hocham['tenhocham']."</td>";
              echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Học Vị : ";
            echo "<td>".$hocvi['tenhocvi']."</td>";
             echo "</td></tr>";
            
              echo "<tr><td>";
            echo "Ở Đơn Vị : ";
            echo "<td>".$donvi['tendonvi']."</td>";
              echo "</td></tr>";   
            echo "</table>";
			echo "</div>";
			echo "</br>";
        
	}
	}
   
	?>
    </fieldset>
    </div>
